package adv41;

/**
 * @author oldliu
 * @since 1.0
 */
public class Thread0  {
    private String name;
    public Thread0(String n){
        this.name=n;
    }
    public void start(){
        run();
    }
    public void run(){
        for (int i = 0; i < 20; i++) {
            System.out.println(this.name+" print "+i);
        }
    }

    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            new Thread0("线程"+i).start();
        }
    }
}
